.class Lcom/brixd/niceapp/activity/NiceAppSearchActivity$2;
.super Ljava/lang/Object;
.source "NiceAppSearchActivity.java"

# interfaces
.implements Landroid/widget/TextView$OnEditorActionListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->initWidgetActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 164
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onEditorAction(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z
    .registers 6
    .param p1, "v"    # Landroid/widget/TextView;
    .param p2, "actionId"    # I
    .param p3, "event"    # Landroid/view/KeyEvent;

    .prologue
    .line 168
    const/4 v0, 0x6

    if-eq p2, v0, :cond_d

    if-eqz p3, :cond_21

    invoke-virtual {p3}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/16 v1, 0x42

    if-ne v0, v1, :cond_21

    .line 169
    :cond_d
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/brixd/niceapp/util/KeyboardController;->hideKeyboard(Landroid/content/Context;)V

    .line 170
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mSearchBtn:Landroid/widget/ImageButton;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$100(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Landroid/widget/ImageButton;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ImageButton;->performClick()Z

    .line 171
    const/4 v0, 0x1

    .line 173
    :goto_20
    return v0

    :cond_21
    const/4 v0, 0x0

    goto :goto_20
.end method
